﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ADO;
using Service.Employee;

public partial class WebUI_ManageCustomersInfo : System.Web.UI.Page
{
    int oldid;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //bindGrid();
            UserGridView.DataBind();
        }
    }

    protected void AddButton_Click(object sender, EventArgs e)
    {
        CustomerSqlDataSource.Insert();
        UserGridView.DataBind();
    }

    protected void UserGridView_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        UserGridView.EditIndex = -1;
        UserGridView.DataBind();
    }
    protected void UserGridView_RowEditing(object sender, GridViewEditEventArgs e)
    {
        UserGridView.EditIndex = e.NewEditIndex;
        UserGridView.DataBind();
    }
    protected void UserGridView_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        UserGridView.DataBind();
    }
    protected void UserGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {
        UserGridView.EditIndex = -1;
        UserGridView.DataBind();
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Server.Transfer("ManageUserInfo.aspx", true);
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Server.Transfer("ManageStrategy.aspx", true);
    }
}
